<div class="feedAttachments">
	<?php if($total  == 1):
	$item  =  $objs ->current();
	?>
	<div class="clearfix">
		<form action="<?php echo Nuo::getUrl('poll/vote'); ?>" method="post">
		
		<div><a class="pollTitle"><?php echo $item -> getTitle(); ?></a></div>
		<ol class="pollList">
			<?php foreach($item->getAnswers() as $answer): ?>
			<li class="pollItem">
				<label for="<?php echo $id = $answer -> getHtmlId(); ?>">
					<input id="<?php echo $id?>" type="radio" name="answer[]" value="<?php echo $answer -> getId(); ?>"/><?php echo $answer -> getTitle(); ?>
				</label>
			</li>
			<?php endforeach; ?>
			<li class="pollControl">
				<button class="button submit" type="submit">Submit</submit>
			</li>
		</ol>
		<input type="hidden" name="poll_id" value="<?php echo $item -> getId(); ?>" />
		<input type="hidden" name="max_answer" value="<?php echo $item -> max_answer; ?>" />
		</form>
	</div>
	<?php else: ?>
	<?php foreach($objs as $item):
	?>
	<div class="clearfix">
		<form action="<?php echo Nuo::getUrl('poll/vote'); ?>" method="post">
		
		<div><a class="pollTitle"><?php echo $item -> getTitle(); ?></a></div>
		<ol class="pollList">
			<?php foreach($item->getAnswers() as $answer): ?>
			<li class="pollItem">
				<label for="<?php echo $id = $answer -> getHtmlId(); ?>">
					<input id="<?php echo $id?>" type="radio" name="answer[]" value="<?php echo $answer -> getId(); ?>"/><?php echo $answer -> getTitle(); ?>
				</label>
			</li>
			<?php endforeach; ?>
			<li class="pollControl">
				<button class="button submit" type="submit">Submit</submit>
			</li>
		</ol>
		<input type="hidden" name="poll_id" value="<?php echo $item -> getId(); ?>" />
		<input type="hidden" name="max_answer" value="<?php echo $item -> max_answer; ?>" />
		</form>
	</div>
	<?php endforeach; ?>
	<?php endif; ?>
</div>